#ifndef _ACTION_SLEEPING_H_
#define _ACTION_SLEEPING_H_

#include "../../RPGAction.h"

class Action_Sleeping : public RPGAction
{

public:

	Action_Sleeping() : RPGAction()
	{
		// seteo los valores de la accion
		pAnimation = new Animation();
		pAnimation->Load("./data/actions/Sleeping.ani");	// cargo la animacion
		strcpy(pszName, "Sleeping");
		fTimeToExecute = 1.0f;
		fTimeToFinish = 10000.0f;
	}
	
	~Action_Sleeping()
	{
		delete pAnimation;
	}

	// sobrecargas de los metodos de RPGAction
	void Execute(RPGCharacter *pCharacter)
	{
		RPGAction::Execute(pCharacter);

		RPGCharacter * pChar;
		pChar = pCharacter->GetCollisionCharacter();
		if(pChar){
				pChar->Action2();
		}
	}
};

#endif //_ACTION_SLEEPING_H_